package cn.zbh.org.mapper;

import cn.zbh.basic.mapper.BasicMapper;
import cn.zbh.org.domain.Employee;
import cn.zbh.org.query.EmployeeQuery;
import cn.zbh.system.domain.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper extends BasicMapper<Employee> {


    void patchDel(List<Long> ids);



    void delEmp2Role(long eid);

    void addEmp2Role(@Param("eid") Long id, @Param("rid") long role_id);

    /**
     * 当前登录人权限
     * @param id
     * @return
     */
    List<String> loadPermissionsByLogininfoId(Long id);

    /**
     * 当前登录人菜单
     * @param id
     * @return
     */
    List<Menu> loadMenusByLogininfoId(Long id);
}
